<template>
  <div>
    <!-- 添加商品 -->
      <!-- 面包屑导航 -->
      <el-breadcrumb separator-class="el-icon-arrow-right">
          <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
          <el-breadcrumb-item>商品管理</el-breadcrumb-item>
          <el-breadcrumb-item>商品添加</el-breadcrumb-item>
      </el-breadcrumb>
    <!-- 卡片 -->
    <el-card>
        <el-alert title="添加商品信息" type="info" center show-icon :closable="false"></el-alert>
        <!-- 进度条 -->
        <el-steps :space="200" :active="activeIndex - 0" finish-status="success" align-center>
            <el-step title="基本信息"></el-step>
            <el-step title="商品参数"></el-step>
            <el-step title="商品属性"></el-step>
            <el-step title="商品图片"></el-step>
            <el-step title="商品内容"></el-step>
            <el-step title="完成"></el-step>
        </el-steps>
        <!-- 侧边栏区域 -->
        <el-form :model="addForm"  ref="addFormRef" label-width="100px" label-position = "top">
            <el-tabs :tab-position="'left'" style="height: 200px;" v-model="activeIndex">
                <el-tab-pane label="基本信息" name="0">基本信息</el-tab-pane>
                <el-tab-pane label="商品参数" name="1">商品参数</el-tab-pane>
                <el-tab-pane label="商品属性" name="2">商品属性</el-tab-pane>
                <el-tab-pane label="商品图片" name="3">商品图片</el-tab-pane>
                <el-tab-pane label="商品内容" name="4">
                    <quill-editor v-model="addForm.goods_introduce"></quill-editor>
                    <el-button type="primary">添加商品</el-button>
                </el-tab-pane>
            </el-tabs>
        </el-form>

    </el-card>
  </div>
</template>

<script>
export default {
  data () {
    return {
      activeIndex: '0',
      addForm: {
        goods_introduce: ''
      }
    }
  },
  methods: {

  }
}
</script>

<style scoped lang="less">
.el-card__body{
    min-height: 500px;
}
</style>
